<!-- Begin assets/view_log.tpl -->

{if is_employee($smarty.session.userid)}
{titlebar colspan=4 title=$title}
{else}
{titlebar colspan=3 title=$title}
{/if}
{opentable}

<tr class="sectiontableheader">
<td width="25%">Date, auteur</td>
<td width="5%" align="center">Type
<td align="left">Message</td>
</td>
{if is_employee($smarty.session.userid)}
<td width="3%" align="center">Priv</td>
{/if}
</tr>

<tr><td class="systmsg" colspan=4>Fonction Indisponible. En cours de construction.</td></tr>

{if is_array($messages)}
{foreach from=$messages item=message}

{if $message.private eq "t"}
<tr class="sectiontableentry2">
{else}
<tr class="sectiontableentry1">
{/if}

<td class="createdate" width="25%">Par {username id=$message.userid}, le {$message.logged|userdate}</td>
<td width="5%" align="center"><img src="{logtypeimg typ=$message.z_type}" border="0" /></td>
<td class="createdate" align="left">{$message.message|stripslashes}</td>
{if is_employee($smarty.session.userid)}
<td width="3%" align="center">
{if $message.private eq "t"}
<img src="{$smarty.env.imgs.private}" border="0" alt="Private Message" />
{else}
<img src="{$smarty.env.imgs.public}" border="0" alt="Public Message" />
{/if}
</td>
{/if}
</tr>
{/foreach}
{else}
{if is_employee($smarty.session.userid)}
<tr class="sectiontableentry1" align="center"><td colspan="4">No log messages to display.</td></tr>
{else}
<tr class="sectiontableentry1" align="center"><td colspan="3">No log messages to display.</td></tr>
{/if}
{/if}
</table>
</table>
<!-- End assets/view_log.tpl -->

